﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using RaSuperGrid.SuperGrid.Model;

namespace RaSuperGrid.SuperGrid.ViewModel
{
    class PRHeaderCollectionViewModel
    {
        public ObservableCollection<PRHeaderItemViewModel> Headers { get; private set; }

        public PRHeaderCollectionViewModel()
        {
            var prHeaderItemViewModel = from prHeader in PRHeader.GetPRHeaders()
                                        select new PRHeaderItemViewModel(prHeader);

            Headers = new ObservableCollection<PRHeaderItemViewModel>(prHeaderItemViewModel);
        }
    }
}